<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <title>Hello APP</title>
    <link rel="stylesheet" type="text/css" href="../css/aui-win.css" />
    <style>
    .aui-icon-check:before,.aui-icon-check:after
    {
    font-size:26px;
    }
    
    </style>
    
</head>
<body>
    <header class="aui-bar aui-bar-nav aui-bar-primary" id="aui-header">
        <a class="aui-btn aui-btn-primary aui-pull-left" tapmode onclick="closeWin()">
            <span class="aui-iconfont aui-icon-close"></span>
        </a>
        <div class="aui-title">画布配置</div>
        <a class="aui-iconfont aui-icon-sitting aui-pull-right" tapmode onclick="Save()">
        <span class="aui-iconfont aui-icon-check"></span>
        </a>
    </header>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript">
    function closeWin(){
        api.closeWin();
    }
    
    function Save()
    {
    	api.execScript({
	        frameName:'setSign_frm',
	        script: 'SaveParam();'
        });   
        setTimeout(api.closeWin(),100);        
        api.sendEvent({name:'SignParam'});
    }
    apiready = function(){
        api.parseTapmode();
        var header = $api.byId('aui-header');
        $api.fixStatusBar(header); 
        var headerPos = $api.offset(header);
        var body_h = $api.offset($api.dom('body')).h;
        api.openFrame({
            name: 'setSign_frm',
            url: 'setSign_frm.html',
            bounces: true,
            vScrollBarEnabled : false,
			hScrollBarEnabled : false,
            rect: {
                x: 0,
                y: headerPos.h,
                w: 'auto',
                h: body_h - headerPos.h
            }
        })
    };
</script>
</html>